#include "common.h"

int get_list_len(struct list_head *head)
{
	if(!head)
		return -1;
	struct list_head *pos;
	int len  = 0;
	list_for_each(pos, head)
		len++;

	return len;
}	


size_t align_size(size_t sz, int n) // 对齐到n
{
   return (sz + n - 1) & -n;
}



